package com.foton.bpc.all.remoting.netty.adpect;

import com.foton.bpc.all.remoting.netty.channel.BpcChannel;

/**
 * @Author RenPu
 * @Date 2023/6/6 11:56
 * @Version 1.0
 * @Description: 接收请求分发器
 **/
public interface HandlerAdpect {

    /**
     * 监听接收消息
     * @param bpcChannel
     * @param msg
     */
    void onRecevice(BpcChannel bpcChannel,Object msg) throws Exception;


    /**
     * 监听读取时间
     * @param bpcChannel
     * @param msg
     */
    void onWrite(BpcChannel bpcChannel,Object msg);



}
